package com.cqy.resource2;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringCloudApplication
public class Resource2Application {
    public static void main(String[] args) {
        SpringApplication.run(Resource2Application.class, args);
    }

    @GetMapping("r2/{text}")
    public Object r2(@PathVariable("text") String text) {
        return "hello " + text;
    }
}
